extends Node
func i_conect(node:Control,player:RigidBody):
	var control=node
	control.get_node("attack").connect("pressed",player,"attack")
	control.get_node("walk").connect("pressed",player,"walk")
	control.get_node("walk").connect("released",player,"stopwalk")
	control.get_node("left").connect("pressed",player,"rotate_left")
	control.get_node("left").connect("released",player,"stop_rotate")
	control.get_node("right").connect("pressed",player,"rotate_right")
	control.get_node("right").connect("released",player,"stop_rotate")
	control.get_node("back").connect("pressed",player,"walkback")
	control.get_node("back").connect("released",player,"stopwalk")
	control.get_node("jump").connect("pressed",player,"jump")
	
	pass
